#!/bin/bash

command1="source /home/weisf/PX4/PX4-Autopilot/Tools/gazebo_sitl_multiple_run.sh;bash"

command2="sleep 30s;roslaunch mavros multi_px4.launch;bash"

command3="sleep 40s;rosrun uav uav_controller_node;bash"

command4="sleep 10s;~/Downloads/QGroundControl.AppImage;bash"

sed -i.bak "s#COMMAND1#$command1#; s#COMMAND2#$command2#; s#COMMAND3#$command3#; s#COMMAND4#$command4#;" ~/.config/terminator/config

terminator -l default

mv ~/.config/terminator/config.bak ~/.config/terminator/config
